package GraphLayer;

import java.awt.Color;
import javax.swing.JFrame;

public class Skeleton extends JFrame {

	private Graph g;
	private static Skeleton instance;

    private Skeleton() {
        initUI();
    }
    
    public static Skeleton getInstance(){
    	if(instance == null){
    		instance = new Skeleton();
    	}
    	return instance;
    }

    private void initUI() {
        setTitle("Graph");
        g = new Graph();
        //add(g);
        setContentPane(g);
        setSize(710, 350);
        setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        setLocationRelativeTo(null);
        setVisible(true);
        getContentPane().setBackground(Color.BLACK);
    }
    
    public void reDraw(){
    	g.repaint();
    }
    
}
